<?php


namespace app\controller\api\common;

use app\common\repositories\system\merchant\MerchantRuleRepository;
use crmeb\basic\BaseController;

class MerchantRule extends BaseController
{
    /**
     * @param MerchantRuleRepository $repository
     * @return mixed
     * @author: fupeng
     * @day: 2023/11/29
     */
    public function lst(MerchantRuleRepository $repository)
    {
        $where['status'] = 1;
        [$page, $limit] = $this->getPage();
        return app('json')->success($repository->getApiList($where, $page, $limit,'sort desc','mer_rule_id,title,content,create_time'));
    }
}
